package com.github.data_manage.dao

import com.github.data_manage.domain.po.Company
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.JpaSpecificationExecutor
import org.springframework.data.jpa.repository.Query

/**
 *@author CHN
 *@since 2024-08-07 22:07
 */
interface CompanyDao : BaseDao<Company> {

    fun findCompanyByCompanyNameEquals(name: String): Company?

    @Query("select count(*) from Company where companyName =:companyName ")
    fun countCompanyByName(companyName: String): Int
}
